package com.wangzhixuan.commons.scan;

public class MyException extends Exception {
	 
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer code ;  //异常对应的返回码
    private String msg;  //异常对应的描述信息
     
    public MyException() {
        super();
    }
 
    public MyException(String message) {
        super(message);
        msg = message;
    }
 
    public MyException(Integer code, String msgDes) {
        super();
        this.code = code;
        this.msg = msgDes;
    }

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
 

}